dvb_dev_find

@brief finds all DVB devices on the local machine @ingroup dvb_device

@param dvb pointer to struct dvb_device to be filled @param enable_monitor if different than zero put the routine into monitor mode @param user_priv pointer to user private data

This routine can be called on two modes: normal or monitor mode

In normal mode, it will seek for the local Digital TV devices, store them at the struct dvb_device and return.

In monitor mode, it will not only enumerate all devices, but it will also keep waiting for device changes. The device seek loop will only be interrupted after calling dvb_dev_stop_monitor().

Please notice that, in such mode, the function will wait forever. So, it is up to the application to put start a separate thread to handle it in monitor mode, and add the needed mutexes to make it thread safe.

@return returns 0 on success, a negative value otherwise.

extern (C)
int
dvb_dev_find

Meta